<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE HTML>
<html>
<head>
	<meta charset="UTF-8">
	<title>登录</title>
	<link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css" media="all">
	<link rel="stylesheet" href="/FortAwesome-Font-Awesome-ee55c85/css/font-awesome.css">
	<link rel="stylesheet" type="text/css" href="/css/reg.css" media="all">
</head>
<body>
	<div class="container">
	
		<%--top --%>
		<%@ include file="include/top.jsp" %>
		<%--head --%>
		<%@ include file="include/head.jsp" %>
		
		<div class="content">
			<ul class="breadcrumb">
			  <li><a href="userIndex.jspx">首页</a> <span class="divider">/</span></li>
			  <li class="active">用户登录</li>
			</ul>
			<form class="form-horizontal" active="login.jspx" method="post">
			  <c:choose>
			  	<c:when test="${requestScope.state==10002}">
			  	    <div class="alert alert-error"> 
					  <button type="button" class="close" data-dismiss="alert">&times;</button>
					  <strong>登录失败！</strong>用户名或密码错误！请重新登录
					</div>
			  	</c:when>
			  	<c:when test="${requestScope.state==20001}">
			  		<div class="alert alert-error"> 
					  <button type="button" class="close" data-dismiss="alert">&times;</button>
					  <strong>注册成功！</strong>请登录……
					</div>
			  	</c:when>
			  	<c:when test="${requestScope.state==10003}">
			  		<div class="alert alert-error"> 
					  <button type="button" class="close" data-dismiss="alert">&times;</button>
					  <strong>您还没有登录！</strong>请先登录……
					</div>
			  	</c:when>
			  </c:choose>
			  <div class="control-group">
			    <label class="control-label" for="inputEmail"><i class="icon-asterisk" style="font-size:8px;"></i>请输入用户名</label>
			    <div class="controls">
			      <input type="text" name="username" id="inputEmail" placeholder="用户名">
			    </div>
			  </div>
			  <div class="control-group">
			    <label class="control-label" for="inputPassword"><i class="icon-asterisk" style="font-size:8px;"></i>请输入密码</label>
			    <div class="controls">
			      <input type="password" name="password" id="inputPassword" placeholder="密码">
			    </div>
			  </div>
			  <div class="control-group">
			    <div class="controls">
			      <button type="submit" class="btn btn-warning">登录</button>
			    </div>
			  </div>
			</form>
		</div>
		<%--foot --%>
		<%@ include file="include/foot.jsp" %>
		
		<div class="clear"></div>
		
	</div>

	
</body>

</html>